package com.bdyc.controller.custom;

import java.util.HashMap;
import java.util.Map;

import com.bdyc.util.MyDateFormat;

public class MapVo {
	private Map<String,Object> mapVo;  
	  
    public Map<String, Object> getMapVo() {  
        return mapVo;  
    }  
  
    public void setMapVo(Map<String, Object> mapVo) {  
        this.mapVo = mapVo;  
    }

	public static Map<String, Object> getSendMap(MyPo po) {
		Map<String, Object> sendMap = new HashMap<String,Object>();
		if(po.getMoble() != null && "".equals(po.getMoble())){
			sendMap.put("moble", po.getMoble());
		}
		if(po.getRows() != null){
			sendMap.put("rows", po.getRows());
		}
		if(po.getPage()!= null){
			sendMap.put("page", po.getPage());
		}
		if(po.getName()!=null && "".equals(po.getName())){
			sendMap.put("name", po.getName());
		}
		if(po.getRid() != null){
			sendMap.put("rid", po.getRid());
		}
		if(po.getRealName() != null && "".equals(po.getRealName())){
			sendMap.put("realName", po.getRealName());
		}
		if(po.getFlag() !=null){
			sendMap.put("flag", po.getFlag());
		}
		if(po.getStatus()!=null){
			sendMap.put("status",po.getStatus());
		}
		if(po.getUid() != null){
			sendMap.put("uid", po.getUid());
		}
		if(po.getPrice() !=null){
			sendMap.put("price", po.getPrice());
		}
		if(po.getEnd() !=null && "".equals(po.getEnd())){
			sendMap.put("end", MyDateFormat.getStartDate(po.getEnd()));
		}
		if(po.getStart() != null && "".equals(po.getStart())){
			sendMap.put("start",MyDateFormat.getEndDate(po.getStart()));
		}
		return sendMap;
	}  
}
